package com.yuyou.tas.feedback.service;

import com.yuyou.tas.service.api.feedback.dto.FeedbackCommentDTO;
import com.yuyou.tas.service.api.feedback.entity.FeedbackComment;
import com.yuyou.tas.service.api.feedback.vo.resp.UnReadSimpleVo;

import java.util.List;

public interface IFeedbackCommentService {
    int deleteByPrimaryKey(Long id);

    int insert(FeedbackComment record);

    FeedbackComment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FeedbackComment record);

    /**
     * 通过班级反馈获取全部评论信息
     * @param feedbackClassId
     * @return
     */
    List<FeedbackComment> findByFeedbackClassId(Long feedbackClassId);

    /**
     * 通过反馈id获取评论列表
     * @param feedbackId
     * @return
     */
    List<FeedbackCommentDTO> findFeedbackCommentList(Long feedbackId);

    /**
     * 获取教师全部未读反馈回复
     * @param userId
     * @return
     */
    Integer getTeacherUnReadCount(Long userId);

    /**
     * 根据班级ids获取教师全部未读反馈回复
     * @param userId
     * @param list
     */
    List<UnReadSimpleVo> getTeacherClassUnReadCount(Long userId , List<Long> list);

    /**
     * 设置反馈回复为已读
     * @param feedbackId
     */
    void setIsReadByFeedback(Long feedbackId);
}